package com.ruoyi.core.service.impl;

import java.util.List;

import com.ruoyi.common.entity.CoreEntity.PointRecords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.core.mapper.PointRecordsMapper;

import com.ruoyi.core.service.IPointRecordsService;

/**
 * 积分变动明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
@Service
public class PointRecordsServiceImpl implements IPointRecordsService 
{
    @Autowired
    private PointRecordsMapper pointRecordsMapper;

    /**
     * 查询积分变动明细
     * 
     * @param id 积分变动明细主键
     * @return 积分变动明细
     */
    @Override
    public PointRecords selectPointRecordsById(Long id)
    {
        return pointRecordsMapper.selectPointRecordsById(id);
    }

    /**
     * 查询积分变动明细列表
     * 
     * @param pointRecords 积分变动明细
     * @return 积分变动明细
     */
    @Override
    public List<PointRecords> selectPointRecordsList(PointRecords pointRecords)
    {
        return pointRecordsMapper.selectPointRecordsList(pointRecords);
    }

    /**
     * 新增积分变动明细
     * 
     * @param pointRecords 积分变动明细
     * @return 结果
     */
    @Override
    public int insertPointRecords(PointRecords pointRecords)
    {
        return pointRecordsMapper.insertPointRecords(pointRecords);
    }

    /**
     * 修改积分变动明细
     * 
     * @param pointRecords 积分变动明细
     * @return 结果
     */
    @Override
    public int updatePointRecords(PointRecords pointRecords)
    {
        return pointRecordsMapper.updatePointRecords(pointRecords);
    }

    /**
     * 批量删除积分变动明细
     * 
     * @param ids 需要删除的积分变动明细主键
     * @return 结果
     */
    @Override
    public int deletePointRecordsByIds(Long[] ids)
    {
        return pointRecordsMapper.deletePointRecordsByIds(ids);
    }

    /**
     * 删除积分变动明细信息
     * 
     * @param id 积分变动明细主键
     * @return 结果
     */
    @Override
    public int deletePointRecordsById(Long id)
    {
        return pointRecordsMapper.deletePointRecordsById(id);
    }
}
